From: Giuseppe Scrivano Date: Tue, 3 Mar 2015 13:21:40 +0000 (+0100) Subject: tests: Remove some duplications from Makefile-tests.am X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~880 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=aeafdfff053c4b4117e57c1b181f75bc241db6ba;p=ostree.git tests: Remove some duplications from Makefile-tests.am Signed-off-by: Giuseppe Scrivano --- diff --git a/Makefile-tests.am b/Makefile-tests.am index 49cca8ce..1c3b50b8 100644 --- a/Makefile-tests.am +++ b/Makefile-tests.am @@ -104,21 +104,23 @@ endif endif # "make check" do not depend from --enable-installed-tests -check_PROGRAMS = tests/test-rollsum tests/test-varint tests/test-ot-unix-utils tests/test-bsdiff +noinst_PROGRAMS += tests/test-rollsum -tests_test_ot_unix_utils_CFLAGS = $(ostree_bin_shared_cflags) $(OT_INTERNAL_GIO_UNIX_CFLAGS) -tests_test_ot_unix_utils_LDADD = $(ostree_bin_shared_ldadd) $(OT_INTERNAL_GIO_UNIX_LIBS) +TESTS = tests/test-varint tests/test-ot-unix-utils tests/test-bsdiff +check_PROGRAMS = $(TESTS) +TESTS_CFLAGS = $(ostree_bin_shared_cflags) $(OT_INTERNAL_GIO_UNIX_CFLAGS) +TESTS_LDADD = $(ostree_bin_shared_ldadd) $(OT_INTERNAL_GIO_UNIX_LIBS) -tests_test_rollsum_SOURCES = src/libostree/bupsplit.c src/libostree/ostree-rollsum.c tests/test-rollsum.c -tests_test_rollsum_CFLAGS = $(ostree_bin_shared_cflags) $(OT_INTERNAL_GIO_UNIX_CFLAGS) -tests_test_rollsum_LDADD = $(ostree_bin_shared_ldadd) $(OT_INTERNAL_GIO_UNIX_LIBS) +tests_test_rollsum_SOURCES = src/libostree/ostree-rollsum.c tests/test-rollsum.c +tests_test_rollsum_CFLAGS = $(TESTS_CFLAGS) +tests_test_rollsum_LDADD = libbupsplit.la $(TESTS_LDADD) -tests_test_varint_SOURCES = src/libostree/ostree-varint.c tests/test-varint.c -tests_test_varint_CFLAGS = $(ostree_bin_shared_cflags) $(OT_INTERNAL_GIO_UNIX_CFLAGS) -tests_test_varint_LDADD = $(ostree_bin_shared_ldadd) $(OT_INTERNAL_GIO_UNIX_LIBS) +tests_test_ot_unix_utils_CFLAGS = $(TESTS_CFLAGS) +tests_test_ot_unix_utils_LDADD = $(TESTS_LDADD) -tests_test_bsdiff_SOURCES = tests/test-bsdiff.c bsdiff/bsdiff.c bsdiff/bspatch.c -tests_test_bsdiff_CFLAGS = $(ostree_bin_shared_cflags) $(OT_INTERNAL_GIO_UNIX_CFLAGS) -tests_test_bsdiff_LDADD = $(ostree_bin_shared_ldadd) $(OT_INTERNAL_GIO_UNIX_LIBS) +tests_test_varint_SOURCES = src/libostree/ostree-varint.c tests/test-varint.c +tests_test_varint_CFLAGS = $(TESTS_CFLAGS) +tests_test_varint_LDADD = $(TESTS_LDADD) -TESTS = tests/test-varint tests/test-ot-unix-utils tests/test-bsdiff +tests_test_bsdiff_CFLAGS = $(TESTS_CFLAGS) +tests_test_bsdiff_LDADD = libbsdiff.la $(TESTS_LDADD)